package com.heima.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.mapper.WmChannelMapper;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.media.pojos.WmChannel;
import com.heima.service.ChannelsService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChannelsServiceImpl extends ServiceImpl<WmChannelMapper, WmChannel> implements ChannelsService {

    // 查询所有频道
    @Override
    public ResponseResult findChannels() {
        List<WmChannel> list = this.list();
        return ResponseResult.okResult(list);
    }
}
